Skip to content

fix: Fix decimal formatting issues.#14

Open
leelynne wants to merge 1 commit intodunglas:mainfrom
leelynne:decimal-fix
Open

fix: Fix decimal formatting issues.#14
leelynne wants to merge 1 commit intodunglas:mainfrom
leelynne:decimal-fix

Conversation

@leelynne
Copy link

@leelynne leelynne commented Mar 17, 2026

fix: decimal formatting issues and test. The 'frac' component won't always be zero due to floating point but strconv.FormatFloat will round to 3 places and can output a whole number. Checking for a decimal at the end is more reliable to detect the rounding.

TestMarshalDecimal was failing on my machine. It passes with this fix. Thanks for maintaining this codebase! Let me know if I missed a contribution guideline.

…ways be zero due to floating point but strconv.FormatFloat will round to 3 places and can output a whole number. Checking for a decimal at the end is more reliable to detect the rounding
@leelynne leelynne changed the title fix: decimal formatting issues. fix: Fix decimal formatting issues. Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant